﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Netcaso_MVC.WebUtilities;
using TimKiemViet_VN.Models;
using TimKiemViet_VN.DataService;

namespace TimKiemViet_VN.Controllers
{
    public class AdminArticleController : Controller
    {
        public ActionResult ArticleManagement()
        {
            if (!User.IsInRole("Administrator"))
            {
                return RedirectToAction("Login", "Account");
            }

            return View();
        }

        public ActionResult ArticleCategoryManagement()
        {
            if (!User.IsInRole("Administrator"))
            {
                return RedirectToAction("Login", "Account");
            }

            return View();
        }
    }
}
